//
//  OnlyLableCell.m
//  JinChengYun
//
//  Created by 金橙云 on 2017/4/8.
//  Copyright © 2017年 金橙云. All rights reserved.
//
#define H_WIDTH self.frame.size.width
#define HA 20
#define HB (H_WIDTH-HA*5)/4
#import "OnlyLableCell.h"

@implementation OnlyLableCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        NSArray *arr = @[@"类别",@"今日",@"本月",@"累计"];
        for (int i= 0; i<4; i++)
        {
            _onlyLab = [[UILabel alloc] init];
            _onlyLab.frame = CGRectMake(HA+(40+HB)*i, 5,HB, 20);
            _onlyLab.textAlignment = NSTextAlignmentCenter;
            //_onlyLab.backgroundColor = [UIColor redColor];
            _onlyLab.font = [UIFont systemFontOfSize:12];
            _onlyLab.text = arr[i];
            [self addSubview:_onlyLab];
            
        }
    }
    return self;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
